package com.jeesite.modules.task.taskgroup.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * dc_sup_task_group_unitEntity
 * @author xhc
 * @version 2022-06-28
 */
@Table(name="dc_sup_task_group_unit", alias="a", label="dc_sup_task_group_unit信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="group_id", attrName="groupId", label="常用组id",isUpdate=true),
		@Column(name="unit_code", attrName="unitCode", label="单位编码"),
		@Column(name="unit_name", attrName="unitName", label="单位名称", queryType=QueryType.LIKE),
		@Column(name="create_by", attrName="createBy", label="创建人" ),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false, isUpdateForce=true),
	}, orderBy="a.id DESC"
)
public class DcSupTaskGroupUnit extends DataEntity<DcSupTaskGroupUnit> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 常用组id
	 */
	private String groupId;
	 /**
	 * 单位编码
	 */
	private String unitCode;
	 /**
	 * 单位名称
	 */
	private String unitName;

	private String unitCodes;
	private String unitNames;

	public String getUnitCodes() {
		return unitCodes;
	}

	public void setUnitCodes(String unitCodes) {
		this.unitCodes = unitCodes;
	}

	public String getUnitNames() {
		return unitNames;
	}

	public void setUnitNames(String unitNames) {
		this.unitNames = unitNames;
	}

	public DcSupTaskGroupUnit() {
		this(null);
	}

	public DcSupTaskGroupUnit(String id){
		super(id);
	}

//	@Size(min=0, max=64, message="常用组id长度不能超过 64 个字符")
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	

	@Size(min=0, max=100, message="单位编码长度不能超过 100 个字符")
	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}
	
	@Size(min=0, max=100, message="单位名称长度不能超过 100 个字符")
	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}
	
}